package com.xbongbong.pro.domain.dao;

import com.xbongbong.pro.domain.entity.FieldConvertRuleEntity;
import java.util.List;
import java.util.Map;

import com.xbongbong.pro.domain.entity.UpdateDataEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface FieldConvertRuleDao {
    Long insert(FieldConvertRuleEntity entity);

    void insertBatch(List<FieldConvertRuleEntity> list);

    FieldConvertRuleEntity getByKey(@Param("key") Long key, @Param("corpid") String corpid );

    Integer update(FieldConvertRuleEntity entity);

    Integer updateBatch(@Param("list") List<FieldConvertRuleEntity> list, @Param("corpid") String corpid);

    List<FieldConvertRuleEntity> findEntitys(@Param("param") Map<String, Object> param);

    Integer getEntitysCount(@Param("param") Map<String, Object> param);
}
